<?php

namespace App\Admin\Actions;

use Dcat\Admin\Actions\Response;
use Dcat\Admin\Grid\Tools\AbstractTool;
use Illuminate\Http\Request;

class GoBackButton extends AbstractTool
{
    protected string $title = '返回';

    protected string $style = 'btn btn-outline-info waves-effect';

    public function handle(): Response
    {
        return $this->response()->script('window.history.back()');
    }
}
